/**
 * 版权所有 2009-2015 中国中医科学院中医药信息研究所 何前锋 frontpeak@yahoo.com.cn
 **/
package cn.ac.cintcm.sh.domain;

import java.util.List;

/**
 *中药
 */
public class HerbEntry extends Element {
 
	private int id = -1;
	 
	/**
	 *名称
	 */
	private String name;
	 
	/**
	 *剂量单位
	 */
	private String unit;
	 
	/**
	 *最小剂量与所在的方剂名称
	 */
	private float minDosage;
	 
	/**
	 *最大剂量与所在的方剂名称
	 */
	private float maxDosage;
    
    protected String qi;
    protected List<String> wei;
    
    protected List<String> jing;
    protected List<String> xiao;	 

	/**
	 *计算最小，最大剂量
	 */
	public void calDosageRange() {
	}

    public float getAvg() {
        
        return (this.maxDosage + this.minDosage) /2;
    }

    public List<String> getJing() {
        
        return jing;
    }

    public String getQi() {
       
        return qi;
    }

    public List<String> getWei() {
        
        return wei;
    }

    public List<String> getXiao() {
        
        return xiao;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public float getMaxDosage() {
        return maxDosage;
    }

    public void setMaxDosage(float maxDosage) {
        this.maxDosage = maxDosage;
    }

    public float getMinDosage() {
        return minDosage;
    }

    public void setMinDosage(float minDosage) {
        this.minDosage = minDosage;
    }

    public void setJing(List<String> jing) {
        this.jing = jing;
    }

    public void setQi(String qi) {
        this.qi = qi;
    }

    public void setWei(List<String> wei) {
        this.wei = wei;
    }

    public void setXiao(List<String> xiao) {
        this.xiao = xiao;
    }
	 
}